package cn.scw.project.goods.domain;

import cn.scw.framework.aspectj.lang.annotation.Excel;
import cn.scw.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 收货地址对象 g_address
 *
 * @author api
 * @date 2020-05-20
 */
public class GAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收件人姓名 */
    @Excel(name = "收件人姓名")
    private String name;

    /** 收件人电话 */
    @Excel(name = "收件人电话")
    private String phone;

    /** 位置-省 */
    @Excel(name = "位置-省")
    private String positionProvince;

    /** 位置-市 */
    @Excel(name = "位置-市")
    private String positionCity;

    /** 位置-市 */
    @Excel(name = "位置-区")
    private String positionArea;

    /** 位置详情 */
    @Excel(name = "位置详情")
    private String positionDetails;

    /** 是否默认位置 */
    @Excel(name = "是否默认位置")
    private boolean isDefault;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setPositionProvince(String positionProvince)
    {
        this.positionProvince = positionProvince;
    }

    public String getPositionProvince()
    {
        return positionProvince;
    }
    public void setPositionCity(String positionCity)
    {
        this.positionCity = positionCity;
    }

    public String getPositionCity()
    {
        return positionCity;
    }
    public void setPositionDetails(String positionDetails)
    {
        this.positionDetails = positionDetails;
    }

    public String getPositionArea() {
        return positionArea;
    }

    public void setPositionArea(String positionArea) {
        this.positionArea = positionArea;
    }

    public String getPositionDetails()
    {
        return positionDetails;
    }
    public void setIsDefault(boolean isDefault)
    {
        this.isDefault = isDefault;
    }

    public boolean getIsDefault()
    {
        return isDefault;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("positionProvince", getPositionProvince())
            .append("positionCity", getPositionCity())
            .append("positionDetails", getPositionDetails())
            .append("isDefault", getIsDefault())
            .append("createDate", getCreateDate())
            .toString();
    }
}
